mod converter;

fn main() {
    let num_str = "9(10)";
    let base_to: u32 = 8;
    let result = converter::convert_base(num_str, base_to);
    println!("{} -> {}", num_str, result);

    use std::fs::File;
    use std::io::Write;
    std::fs::create_dir_all("./output").expect("Unable to create directory");
    let mut file = File::create("./output/s2.txt").expect("Unable to create file");
    writeln!(file, "{num_str} -> {result}").expect("Unable to write data");
}
